package com.cqjtu.store.product.pojo.vo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.cqjtu.store.util.JsonArrayToStringListTypeHandler;
import lombok.Data;

import java.util.List;

/**
 * @ProjectName: cqjtu-store
 * @Titile: ProductVO
 * @Author: Lucky
 * @Description: 商品vo
 */
@Data
public class ProductVO {
    private Integer id;
    private String title;
    private Long price;
    private String image;
    /**
     * 商品缩略图多图，数据库使用JSON格式存储
     */
    @TableField(typeHandler = JsonArrayToStringListTypeHandler.class)
    private List<String> thumbnails;
}
